﻿@model Guline.HosterModels.Object.Group
@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout_Admin.cshtml";
}
<span class="s_title_body_right">@ViewBag.Title</span>
<div class="">@Html.ActionLink("Back", "Index", "Group", new { @class = "btn_add" })</div>

@using (Html.BeginForm())
{
    <table border="0" width="100%">
        <col style="width:25%">
        <col style="width:75%">
        <tr class="div_filed">
            <td>Name</td>
            <td>
                @Html.TextBoxFor(m => m.Name)
                <span class="msg">@Html.ValidationMessageFor(m => m.Name)</span>
            </td>
        </tr>
        <tr class="div_filed">
            <td>MaxDomain</td>
            <td>
                @Html.TextBoxFor(m => m.MaxOrganizes)
                <span class="msg">@Html.ValidationMessageFor(m => m.MaxOrganizes)</span>
            </td>
        </tr>
        <tr class="div_filed">
            <td>Status</td>
            <td>
                @{
    var listItem = new List<System.Web.UI.WebControls.ListItem>
                    {
                        new System.Web.UI.WebControls.ListItem {Text="Enable",Value="1"},
                        new System.Web.UI.WebControls.ListItem {Text="Disable",Value="0"}
                    };
                }
                @Html.DropDownListFor(m => m.Status, new SelectList(listItem, "Value", "Text"), new { @class = "drop_box" })
                <span class="msg">@Html.ValidationMessageFor(m => m.Status)</span>
            </td>
        </tr>
        <tr class="div_filed">
            <td>Notes</td>
            <td>
                @Html.TextBoxFor(m => m.Notes)
                <span class="msg">@Html.ValidationMessageFor(m => m.Notes)</span>
            </td>
        </tr>
    </table>
    <div class="submit">
        <input type="submit" value="Add New" class="btn_submit center" />
        <input type="reset" value="Reset" class="btn_submit center" />
    </div>
}

